<layout name="../Common/Master/master" />
<include file="../Common/Master/left" />
		<div class="orderright">

			<div class="orderlist">
				<h2>我的订单</h2>
				<foreach name="goods" item="vo">
				<div class="carshop">
					<h4>订单编号: {$vo['ordernumber']}</h4>
					<div class="cartitle">
						<div class="carname">商品名称</div>
						<div class="carmoney">单价</div>
						<div class="carnum">数量(件)</div>
						<div class="carcount">小计</div>
						<div class="carcount">操作</div>
					</div>
					<foreach name="vo['value']" item="voo">
					<div class="shopcontent">
						<div class="shopname">
							<div class="carimg">
								<a href=""><img width="80px" height="80px" src="{$voo['thumb']}"/></a>
							</div>
							<p>
								<a href="{:U('home/goodinfo/index',['gid'=>$voo['gid']])}" style="font-size: 14px;display: inline-block;width: 290px;overflow: hidden">{$voo['gname']}</a>
								<!--<span>适配机型： 小米手机5</span>-->
							</p>
						</div>
						<div class="shopmoney"  style="width: 50px">{$voo['priced']}元</div>
						<div class="shopnum" style="width: 50px;margin-left: 50px">
							{$voo['count']}
						</div>
						<div class="shopcount" style="width: 50px;margin-left: 55px">{$voo['zongjia']}</div>
						<div class="shopcount" style="cursor: pointer;">
							<?php $sta=$vo['orderstatus']?>
							<?php $sta1=$voo['gstatus']?>
							<switch name="sta1">
								<case value="3"><a href="{:U('home/userinfo/refund',['ugid'=>$voo['ugid']])}" style="padding: 5px 5px;background: orange;color: #fff">退货</a></case>
								<case value="4"><a href="" style="padding: 5px 5px;background: red;color: #fff">正在退货</a></case>
							</switch>
						</div>

					</div>
					</foreach>
				</div>
					<div class="shopcount" style="margin-left: 20px">
						订单状态：
						<span style="color:orangered;">
						<switch name="sta">
							<case value="0">未发货</case>
							<case value="1">在路上</case>
							<case value="2">已完成</case>
						</switch>
							</span>

					</div>
					<div class="shopcount" style="cursor: pointer;margin-left:20px;margin-top: 10px;">
						操作：
						<switch name="sta">
							<case value="0"><a href="" style="padding: 5px 5px;background: orange;color: #fff">提醒发货</a></case>
							<case value="1"><a href="" style="padding: 5px 5px;background: orange;color: #fff">查看快递</a>
								<a href="{:U('confiregood',['uoid'=>$vo['uoid']])}"  style="padding: 5px 5px;background: lawngreen;color: #fff">确认收货</a></case>
						</switch>
					</div>
				<div class="jiesuan" style="margin-bottom: 20px;border-bottom: 10px solid lawngreen">
					<div class="gongji">共计<span>{$vo['zongjian']}</span>件商品</div>
					<div class="heji">合计 <span>￥{$vo['orderpay']}</span></div>
				</div>
				</foreach>
			</div>

		</div>

	</div>
<script>
	function confires(uoid){
//        alert(uoid);
//		{:U('confiregood',['uoid'=>$vo['uoid']])}
//		$.post("{:U('home/userinfo/confiregood')}",{uoid:uoid},function(res){
//
//		},"json");
	}
</script>


